package com.moneyhelper.upms.entity;

import com.moneyhelper.common.entity.CommonEntity;
import com.moneyhelper.common.id.CommonGenId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @author： ygl
 * @date： 2019/07/07
 * @Description：
 */
@EqualsAndHashCode(callSuper=false)
@Data
@Table(name = "sys_menu")
public class SysMenu  extends CommonEntity {

    @Id
    @KeySql(genId = CommonGenId.class)
    private String id;
    /**
     * 名称
     */
    private String title;
    /**
     * 编码
     */
    private String code;
    /**
     * 排序
     */
    private Integer orderNum;
    /**
     * 父级ID
     */
    private String parentId;
}
